#include "testSpecialShape.h"
#include <qbitmap.h>
#include "CConfigOperate.h"

#pragma comment(lib,"../bin/x64/Debug/CConfigOperate.lib")

testSpecialShape::testSpecialShape(QWidget *parent)
    : QMainWindow(parent)
{
    ui.setupUi(this);
    OnInitDialog();
}

void testSpecialShape::OnInitDialog()
{
    setWindowFlags(Qt::FramelessWindowHint);
    auto _ret = m_pixmap.load(":/testSpecialShape/resource/bg.png");
    resize(m_pixmap.size());
    setAttribute(Qt::WA_TranslucentBackground);
    setStyleSheet("image:url(:/testSpecialShape/resource/bg.png)");
}
